#include <iostream>

int main()
{
	using namespace std;

	int a = 10;
	int & b = a;

	cout << "a = " << a;
	cout << ", b = " << b << endl;
	b++;
	cout << "a = " << a;
	cout << ", b = " << b << endl;

	cout << "a addr = " << &a;
	cout << ", b addr = " << &b << endl;

	system("pause");

	return 0;
}